<h2> Lista de Turmas </h2>
<form name="formLista" action="index.php" method="post">
    <input type="hidden" name="funcao" value="">
    <input type="hidden" name="id" value="">
    <input type="hidden" name="idDisciplina" value="">
    <table cellpadding="0" cellspacing="0" border="0" width="100%" class="table">
        <!-- table header -->
        <tr class="table_header">
            <td valign="middle" align="left">Código da Disciplina</td>
            <td valign="middle" align="left">Código da Turma</td>
            <td valign="middle" align="left">Nome do Professor</td>
            <td valign="middle" align="left">Opções</td>
        </tr>
        <?php
        foreach ($turmas as $turma) {
            echo '<!-- row type one -->
                              <tr class="row1">
                              <td valign="middle" align="left"><a href="/admin/detalhesDisciplina/'.$turma["disciplina_id"].'">'.$turma["disciplina_id"].'</td>
                              <td valign="middle" align="left">'.$turma["id"].'</td>
                              <td valign="middle" align="left"><a href="/admin/detalhesProfessor/'.$turma["users"]["id"].'">'.$turma["users"]["nome"].'</td>
                              <td valign="middle" align="left"><a href="/admin/excluirTurma/'.$turma["disciplina"]["id"].'/'.$turma["id"].'">Excluir</a></td>
                              </tr>';
        }

        ?>
    </table>
</form>
<form action="/admin/novaTurma" method="post" >
    <p><input type="submit" class="button" value="Nova Turma" /></p>
</form>